package com.szh.mysobproject.util

import androidx.appcompat.widget.TooltipCompat
import com.google.android.material.tabs.TabLayout

fun TabLayout.clearTooltipText() {
    val tabCount = tabCount
    repeat(tabCount) {
        val tabView = getTabAt(it)?.view ?: return@repeat
        TooltipCompat.setTooltipText(tabView, null)
    }
}